package com.itmuch.box.domain.config;
// Generated 2015-12-29 22:06:46 by Hibernate Tools 4.3.1.Final

import static javax.persistence.GenerationType.IDENTITY;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.itmuch.box.core.base.BaseEntity;

/**
 * Config generated by hbm2java
 */
@Entity
@Table(name = "def_config", catalog = "yayi_spring_boot")
@DynamicInsert
@DynamicUpdate
public class Config extends BaseEntity {

    private Integer id;
    private String module;
    private String name;
    private String description;
    private String k;
    private String v;
    private Date createTime;
    private Date updateTime;
    private Integer createId;
    private Integer updateId;

    public Config() {
    }

    public Config(String module, String name, String description, String k, String v, Date createTime, Date updateTime, Integer createId,
            Integer updateId) {
        this.module = module;
        this.name = name;
        this.description = description;
        this.k = k;
        this.v = v;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.createId = createId;
        this.updateId = updateId;
    }

    @Override
    @Id
    @GeneratedValue(strategy = IDENTITY)

    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return this.id;
    }

    @Override
    public void setId(Integer id) {
        this.id = id;
    }

    @Column(name = "module", nullable = false, length = 50)
    public String getModule() {
        return this.module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    @Column(name = "name", nullable = false, length = 50)
    public String getName() {
        return this.name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Column(name = "description", nullable = false, length = 50)
    public String getDescription() {
        return this.description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Column(name = "k", nullable = false)
    public String getK() {
        return this.k;
    }

    public void setK(String k) {
        this.k = k;
    }

    @Column(name = "v", nullable = false, length = 2000)
    public String getV() {
        return this.v;
    }

    public void setV(String v) {
        this.v = v;
    }

    @Override
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "create_time", nullable = false, length = 0)
    public Date getCreateTime() {
        return this.createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "update_time", nullable = false, length = 0)
    public Date getUpdateTime() {
        return this.updateTime;
    }

    @Override
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    @Column(name = "create_id", nullable = false)
    public Integer getCreateId() {
        return this.createId;
    }

    @Override
    public void setCreateId(Integer createId) {
        this.createId = createId;
    }

    @Override
    @Column(name = "update_id", nullable = false)
    public Integer getUpdateId() {
        return this.updateId;
    }

    @Override
    public void setUpdateId(Integer updateId) {
        this.updateId = updateId;
    }

}
